package com.coreservlets.jsf.ss12;

/**
 * @author InfZero
 *
 */
public class Arithmetic
{
	private int number1;
	private int number2;
	private int sum = 0;
	
	public int getNumber1() 
	{
		return number1;
	}
	
	public void setNumber1(int number1) 
	{
		this.number1 = number1;
	}
	
	public int getNumber2()
	{
		return number2;
	}
	
	public void setNumber2(int number2) 
	{
		this.number2 = number2;
	}

	public String getSum()
	{
		return( String.format( "%s", ( number1 + number2 ) ) );
	}
	
	public void setSum( int sum)
	{
		this.sum = sum;
	}
}
